<?php
require_once '../config/config.php';
require_once '../config/connexion_db.php';

              
//$sql = "SELECT * FROM entreprises, contacts WHERE entreprises.id = contacts.id_entreprise AND nom='$nom'"; 
//$envoi_requete = mysqli_query($connexion_serveur, $sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());;
//?>    <div>
    <br><br>
        <table>
            <tr>
                <td class="col1"> n°</td>
                <td class="col2"><?php echo $resultats['id']; ?></td>
            </tr>
            <tr>
                 <td class="col1">Nom et prénom</td>
                 <td class="col2"><?php echo $resultats['nom']?>  <?php echo $resultats['prenom'];  ?></td>
            </tr>
            <tr>
                 <td class="col1">Entreprise</td>
                 <td class="col2"><?php echo $resultats['raison_sociale']; ?></td>
            </tr>
            <tr>
                 <td class="col1">Téléphone</td>
                 <td class="col2"><?php echo $resultats['telephone'];  ?></td>
            </tr>
            <tr>
                 <td class="col1">Photo</td>
                 <td class="col2"><?php echo $resultats['photo'];  ?></td>
            </tr>
            <tr>
                 <td class="col1">Email</td>
                 <td class="col2"><?php echo $resultats['email'];  ?></td>
            </tr>
            <tr>
                 <td class="col1">Photo</td>
                 <td class="col2" id="imag"><img src="<?php echo $resultats['photo'];  ?>"></td>
            </tr>
            <tr>
                 <td class="col1">Observations</td>
                 <td class="col2"><?php echo $resultats['observations'];  ?></td>
            </tr>
            <tr>
                <td class="col1"></td>
                <td class="col2"> <a href="../contacts/modifier_contacts.php?id=<?php echo $resultats['id'];?>" >Modifier</a></td>
            </tr>
            </table>
</div>
<?php



/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

